cmake_minimum_required (VERSION 2.8)
project (cmvision)

set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

# OpenCV
#if (WIN32)
	#set (OpenCV_STATIC true)
#endif()
find_package (OpenCV REQUIRED)

set (SRC_LIST cmvutils.cpp cmvvision.cpp)
set (HEADER_LIST cmvutils.h cmvvision.h calibration.h)
add_library (${CMAKE_PROJECT_NAME} STATIC ${SRC_LIST} ${HEADER_LIST})
target_link_libraries (${CMAKE_PROJECT_NAME} ${OpenCV_LIBS})

add_subdirectory (apps)
